package cn.edu.scau.cmi.linyiqu.abstractFactory.factory;

import cn.edu.scau.cmi.linyiqu.abstractFactory.domainAbstractClass.Meat;

public abstract class AbstractFactory {

	public static AbstractFactory getFactory(String brand) {
		switch(brand) {
		case "Wens" : return new WensFactory();
		case "Tianbang" :return new TianbangFactory();
		case "Aonong" : return new AonongFactory();
		}
		return null;
	}
	
	public abstract Meat createPork();
	public abstract Meat createBeef();
	public abstract Meat createChicken();
}
